package inutan.game;

import inutan.login.LoginBootstrap;
import org.ricks.boot.Ricks;
import org.ricks.common.exception.ServerBootstrapException;

/**
 * @Author ricks [chenwei]
 * @Version [v1.0]
 * @CreateTime 2024-10-09   16:08
 * @Description 启动入口
 */
public class Bootstrap {

    public static void main(String[] args) {
        for (String arg: args) {
            switch (arg) {
                case "http" -> Ricks.run(LoginBootstrap.class,args);
                case "game" -> GameRun.main(args);
                default -> throw new ServerBootstrapException("未知指令！");
            }
        }
    }
}
